﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace SimulationConvert
{
    class App
    {
        static Application app;
        [STAThread]
        static void Main()
        {
            app = new Application();
            MainWindow m = new MainWindow();
            app.ShutdownMode = ShutdownMode.OnExplicitShutdown;
            app.Activated += App_Activated;
            m.SHUT_EVENT += shut;
            app.Run(m);
        }

        private static void App_Activated(object? sender, EventArgs e)
        {
            //essageBox.Show("Activated");
        }

        static void shut()
        {
            app.Shutdown();
        }
    }
}
